package com.hotel.api.service;

import com.hotel.api.entity.AdminNotice;
import com.hotel.api.entity.Lost;
import com.hotel.api.entity.UserRole;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * @Author 涛涛
 * @Create 2019/8/29
 */
public interface AdminService {
    //发布失物
    int addLost(Lost lost);

    //查看失物
    List<Lost> selectAllLost();

    //修改失物状态，1为未认领，0为已认领
    int updateLost(Lost lost);

    //公告管理,发布公告
    boolean addNotice(AdminNotice adminNotice);


    //公告管理，查看所有公告
    List<AdminNotice> getNoticList();

    Lost findLostById(Integer id);

    int updateNotice(AdminNotice adminNotice);

    UserRole adminLogin(Integer uid);


}